Force MathJax/KaTeX/MediaWiki to use native MathML rendering.
Native MathML Extension
This add-on performs the following actions on each page to try and switch to native MathML rendering when possible:
- Insert CSS stylesheets to display the hidden MathML output generated by MediaWiki, MathJax ≥ 3 and KaTeX ≥ 0.2.
- Set the preference cookie of MathJax 2 so that it uses its NativeMML output processor.
It is recommended to install math fonts for best MathML rendering.
Examples of Web pages:
- Wikipedia Fourier transform (MediaWiki)
- KaTeX homepage (KaTeX)
- MathJax samples (MathJax 3)
- math.stackexchange (MathJax 2)
Read more
- Insert CSS stylesheets to display the hidden MathML output generated by MediaWiki, MathJax ≥ 3 and KaTeX ≥ 0.2.
- Set the preference cookie of MathJax 2 so that it uses its NativeMML output processor.
It is recommended to install math fonts for best MathML rendering.
Examples of Web pages:
- Wikipedia Fourier transform (MediaWiki)
- KaTeX homepage (KaTeX)
- MathJax samples (MathJax 3)
- math.stackexchange (MathJax 2)
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Native MathML", "version": "2.0.0", "description": "Force MathJax/KaTeX/MediaWiki to use native MathML rendering.", "author": "Fr\u00e9d\u00e9ric Wang", "homepage_url": "https://github.com/fred-wang/webextension-native-mathml", "icons": { "48": "icons/icon-48.png", "96": "icons/icon-96.png" }, "content_scripts": [ { "matches": [""], "all_frames": true, "css": [ "content-scripts/katex.css", "content-scripts/mathjax-v3.css", "content-scripts/mediawiki.css" ], "js": [ "content-scripts/mathjax-v2-menu-cookie.js" ], "run_at": "document_start" } ], "browser_specific_settings": { "gecko": { "id": "jid1-fGtBdrROY6E1gA@jetpack" } }}
Read more